package mdm.led.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

import mdm.led.common.AbstractBean;

public class User extends AbstractBean {

	private Integer cUserId;

	private Integer cOperatorId;

	private String cUsername;

	private String cOperatorUser;

	private String cPassword;

	private String cNickname;

	private String cCardId;
	// 职位 
	private String cJobnumber; 
	// 负责人业务口标签',' 分割
	private String businessflag;
	// 业务口标签集合
	private Map<String, String> businessflags;
	// 电话
	private String cPhone;
	//用户类型 (1:内部 2:外部)
	private Integer usertype;
	// 部门级别 (1:一级 2:二级 3:三级)
	private Integer departmentLevel;
	// 部门类型:1:科室2:大队
	private Integer departmentType;
	// 角色Id
	private Integer roleId;
	// 角色名称
	private String rolename;
	// 部门Id
	private Integer departmentId;
	// 部门名称
	private String departmentname;
	// 创建时间
	private String createTime;
	// 修改时间
	private String updateTime;

	private String remark;
	// 1 启用 2 删除
	private Short state;
	// 是否启用（1，启用，2，禁用）
	private Short status;
	
	
	
	public Map<String, String> getBusinessflags() {
		return businessflags;
	}

	public void setBusinessflags(Map<String, String> businessflags) {
		this.businessflags = businessflags;
	}

	public String getBusinessflag() {
		return businessflag;
	}

	public void setBusinessflag(String businessflag) {
		this.businessflag = businessflag;
	}

	public Integer getUsertype() {
		return usertype;
	}

	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}

	public Integer getDepartmentLevel() {
		return departmentLevel;
	}

	public void setDepartmentLevel(Integer departmentLevel) {
		this.departmentLevel = departmentLevel;
	}

	public Integer getDepartmentType() {
		return departmentType;
	}

	public void setDepartmentType(Integer departmentType) {
		this.departmentType = departmentType;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getDepartmentname() {
		return departmentname;
	}

	public void setDepartmentname(String departmentname) {
		this.departmentname = departmentname;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}


	public Integer getcOperatorId() {
		return cOperatorId;
	}

	public void setcOperatorId(Integer cOperatorId) {
		this.cOperatorId = cOperatorId;
	}

	public String getcOperatorUser() {
		return cOperatorUser;
	}

	public void setcOperatorUser(String cOperatorUser) {
		this.cOperatorUser = cOperatorUser;
	}

	public Integer getcUserId() {
		return cUserId;
	}

	public void setcUserId(Integer cUserId) {
		this.cUserId = cUserId;
	}

	public String getcUsername() {
		return cUsername;
	}

	public void setcUsername(String cUsername) {
		this.cUsername = cUsername == null ? null : cUsername.trim();
	}

	public String getcPassword() {
		return cPassword;
	}

	public void setcPassword(String cPassword) {
		this.cPassword = cPassword == null ? null : cPassword.trim();
	}

	public String getcNickname() {
		return cNickname;
	}

	public void setcNickname(String cNickname) {
		this.cNickname = cNickname == null ? null : cNickname.trim();
	}

	public String getCreateTime() {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		if (!(createTime == null || createTime.equals(""))) {

			try {
				return simpleDateFormat.format(simpleDateFormat.parse(createTime));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		if (updateTime != null && !updateTime.equals("")) {
			try {
				return simpleDateFormat.format(simpleDateFormat.parse(updateTime));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public Short getState() {
		return state;
	}

	public void setState(Short state) {
		this.state = state;
	}

	public String getcJobnumber() {
		return cJobnumber;
	}

	public void setcJobnumber(String cJobnumber) {
		this.cJobnumber = cJobnumber;
	}

	public String getcPhone() {
		return cPhone;
	}

	public void setcPhone(String cPhone) {
		this.cPhone = cPhone;
	}

	public String getcCardId() {
		return cCardId;
	}

	public void setcCardId(String cCardId) {
		this.cCardId = cCardId;
	}

	public Integer getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}


	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

}